package org.leon.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DemoServiceImpl {

    private ServiceB serviceB;

    private ServiceC serviceC;

    @Autowired
    public DemoServiceImpl(ServiceB serviceB, ServiceC serviceC) {
        this.serviceB = serviceB;
        this.serviceC = serviceC;
    }

    public String doSomething() {
        serviceB.sayHello();
        serviceC.sayHello();

        return "ok";
    }
}
